package com.lz.service.lg;

import com.lz.entity.Car;
import com.lz.entity.Customer;
import com.lz.entity.Employee;
import com.lz.entity.OrderSheet;
import com.lz.repository.lg.VO.OrderSheetVO;

import java.util.List;
import java.util.Map;

public interface OrderSheetService {
	//添加订单
	Integer addOrderSheet(OrderSheet orderSheet, Customer customer, Car car, Employee employee);
	
	//条件查询订单功能+分页
	List<OrderSheetVO> selectOrderSheet(String customerName,Integer pageNo,Integer pageSize,String brand);
	
	//得到订单总条数
	Integer rowsOfOrderSheet(String customerName,String brand);
	
	//根据map查询总条数
	Integer rowsByMap(Map map);
	
	//删除订单
	void deleteOrderSheet(Integer orderSheetId);
	
	//提交订单,将订单状态改变为"已提交"
	void submitOrderSheet(Integer orderSheetId);
	
	//根据订单id查询到对应订单
	Map<String,Object> findByorderSheetId(Integer orderSheetId);
	
	//根据外界传入的VO类修改表数据
	void changeOrderSheet(OrderSheetVO orderSheetVO);

	Integer selectMaxOrderId();
}
